home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / AIncludes / GXMessages.a < prev    next >
Encoding:
Text File  |  1996-05-01  |  3.2 KB  |  162 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        GXMessages.a
  3. ;
  4. ;    Contains:    This file contains all of the public data structures,
  5. ;
  6. ;    Version:    Technology:    Quickdraw GX 1.1
  7. ;                Release:    Universal Interfaces 3.0d3 on Copland DR1
  8. ;
  9. ;    Copyright:    © 1984-1996 by Apple Computer, Inc.  All rights reserved.
  10. ;
  11. ;    Bugs?:        If you find a problem with this file, send the file and version
  12. ;                information (from above) and the problem description to:
  13. ;
  14. ;                    Internet:    apple.bugs@applelink.apple.com
  15. ;                    AppleLink:    APPLE.BUGS
  16. ;
  17. ;
  18.     IF &TYPE('__GXMESSAGES__') = 'UNDEFINED' THEN
  19. __GXMESSAGES__ SET 1
  20.  
  21.     IF &TYPE('__CONDITIONALMACROS__') = 'UNDEFINED' THEN
  22.     include 'ConditionalMacros.a'
  23.     ENDIF
  24.     IF &TYPE('__MIXEDMODE__') = 'UNDEFINED' THEN
  25.     include 'MixedMode.a'
  26.     ENDIF
  27.     IF &TYPE('__TYPES__') = 'UNDEFINED' THEN
  28.     include 'Types.a'
  29.     ENDIF
  30.     IF FOR_SYSTEM7_AND_SYSTEM8_COOPERATIVE THEN
  31. ;
  32. ;
  33. ;    >>>>>> CONSTANTS <<<<<<
  34. ;
  35. ;
  36. ;  Message Manager Trap 
  37.  
  38. messageManagerTrap                EQU        $ABFB
  39. ;  Message Manager Gestalt Selector 
  40.  
  41. gestaltMessageMgrVersion        EQU        'mess'
  42. ;  Message Manager Error Result Codes 
  43.  
  44. messageStopLoopingErr            EQU        -5775
  45. cantDeleteRunningHandlerErr        EQU        -5776
  46. noMessageTableErr                EQU        -5777
  47. dupSignatureErr                    EQU        -5778
  48. messageNotReceivedErr            EQU        -5799
  49. ;
  50. ;    DATA TYPES
  51. ;
  52.     IF OLDROUTINENAMES THEN
  53. ; typedef MessageHandlerOverrideProcPtr  MessageHandlerOverrideProc
  54.  
  55. ; typedef MessageGlobalsInitProcPtr     MessageGlobalsInitProc
  56.  
  57.     ENDIF
  58.  
  59.  
  60.  
  61.  
  62. ;
  63. ;
  64. ;    PUBLIC INTERFACES
  65. ;
  66. ;    Message Handler API Routines
  67. ;
  68. ;
  69. ; extern long CountMessageHandlerInstances(void )
  70. ;
  71.     IF ¬ GENERATINGCFM THEN
  72.         Macro
  73.         _CountMessageHandlerInstances
  74.             moveq               #40,D0
  75.             dc.w                $ABFB
  76.         EndM
  77.     ELSE
  78.         IMPORT_CFM_FUNCTION CountMessageHandlerInstances
  79.     ENDIF
  80.  
  81. ;
  82. ; extern void *GetMessageHandlerClassContext(void )
  83. ;
  84.     IF ¬ GENERATINGCFM THEN
  85.         Macro
  86.         _GetMessageHandlerClassContext
  87.             moveq               #41,D0
  88.             dc.w                $ABFB
  89.         EndM
  90.     ELSE
  91.         IMPORT_CFM_FUNCTION GetMessageHandlerClassContext
  92.     ENDIF
  93.  
  94. ;
  95. ; extern void *SetMessageHandlerClassContext(void *anyValue)
  96. ;
  97.     IF ¬ GENERATINGCFM THEN
  98.         Macro
  99.         _SetMessageHandlerClassContext
  100.             moveq               #42,D0
  101.             dc.w                $ABFB
  102.         EndM
  103.     ELSE
  104.         IMPORT_CFM_FUNCTION SetMessageHandlerClassContext
  105.     ENDIF
  106.  
  107. ;
  108. ; extern void *GetMessageHandlerInstanceContext(void )
  109. ;
  110.     IF ¬ GENERATINGCFM THEN
  111.         Macro
  112.         _GetMessageHandlerInstanceContext
  113.             moveq               #43,D0
  114.             dc.w                $ABFB
  115.         EndM
  116.     ELSE
  117.         IMPORT_CFM_FUNCTION GetMessageHandlerInstanceContext
  118.     ENDIF
  119.  
  120. ;
  121. ; extern void *SetMessageHandlerInstanceContext(void *anyValue)
  122. ;
  123.     IF ¬ GENERATINGCFM THEN
  124.         Macro
  125.         _SetMessageHandlerInstanceContext
  126.             moveq               #44,D0
  127.             dc.w                $ABFB
  128.         EndM
  129.     ELSE
  130.         IMPORT_CFM_FUNCTION SetMessageHandlerInstanceContext
  131.     ENDIF
  132.  
  133. ;
  134. ; extern OSErr NewMessageGlobals(long messageGlobalsSize, MessageGlobalsInitUPP initProc)
  135. ;
  136.     IF ¬ GENERATINGCFM THEN
  137.         Macro
  138.         _NewMessageGlobals
  139.             moveq               #45,D0
  140.             dc.w                $ABFB
  141.         EndM
  142.     ELSE
  143.         IMPORT_CFM_FUNCTION NewMessageGlobals
  144.     ENDIF
  145.  
  146. ;
  147. ; extern void DisposeMessageGlobals(void )
  148. ;
  149.     IF ¬ GENERATINGCFM THEN
  150.         Macro
  151.         _DisposeMessageGlobals
  152.             moveq               #46,D0
  153.             dc.w                $ABFB
  154.         EndM
  155.     ELSE
  156.         IMPORT_CFM_FUNCTION DisposeMessageGlobals
  157.     ENDIF
  158.  
  159.     ENDIF
  160.     ENDIF ; __GXMESSAGES__ 
  161.  
  162.